package com.tmeone.erpone.service.impl;

import com.tmeone.erpone.entity.TDepartment;
import com.tmeone.erpone.mapper.TDepartmentMapper;
import com.tmeone.erpone.service.ITDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tmeone
 * @since 2021-04-19
 */
@Service
public class TDepartmentServiceImpl extends ServiceImpl<TDepartmentMapper, TDepartment> implements ITDepartmentService {

    @Autowired
    private TDepartmentMapper departmentMapper;

    @Override
    public List<TDepartment> selectDepartment() {
        return departmentMapper.selectDepartment();
    }

    @Override
    public TDepartment selectOneDepartment(String id) {
        return departmentMapper.selectOneDepartment(id);
    }
}
